
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>demo</title>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="../jlib/windows/jdialog.css" type="text/css" />
<script src="../js/jquery.js" type="text/javascript"></script>
<script src="../jlib/windows/jdialog.js" type="text/javascript"></script><SCRIPT LANGUAGE="JavaScript">
<!--
$(function(){
	$("#more_search").click(function(){
		$(this).boxto({title:"查询", url: this.href,width:650, height:440, moveable:true});
		return false;
	});				
	$(".view").click(function(){
		alert(1);
		$(this).boxto({title:"编辑", url: this.href,width:650, height:440, moveable:true});
		return false;
	});
	$("#xzqh").change(function(){
		var qhdm = $(this).val();
		$("#result").find(".row").each(function(){
			if(qhdm=="all"){
				$(this).show();
			}else{
				if($(this).attr("value")!=qhdm){
					$(this).hide();
				}else{
					$(this).show();
				}
			}
		});
	});
	$("#add").click(function(){
		$(this).boxto({title:"添加", url: this.href,width:570, height:390, moveable:true});
		return false;
	});
	$(".del").click(function(){
		if(window.confirm("确认删除?")){
			window.location.href=this.href;
		}
		return false;
	});		
});

function closediv() {
	$.boxit.closeAll();
}
//-->
</SCRIPT>
</head>
<body>
<div id="btnsite">
  <table width="200" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="30" height="24" align="center"><img src="../images/add.gif" /></td>
      <td width="70" align="left"><a id="add" href="edit.htm">增加</a></td>
      <td width="30" align="center"><img src="../images/delete.gif" /></td>
      <td width="70" align="left"><a href="javascript();">删除</a></td>
    </tr>
  </table>
</div>

<table width="99%" cellpadding="0" cellspacing="0" class="table" >
<form action="list.htm">
  <tr>
    <th colspan="4">查询用户</th>
  </tr>
  <tr>
    <td width="17%" align="center" class="rowColor rowColorRight">用户名</td>
    <td width="38%" class="row rowLeft">
	<input type="text" name="userName" value="${u.userName!''}">
  </tr>
  
</table>
<div class="btnDiv"><input name="button2" type="submit"
	class="btn" id="button2" value="查 询" /> <input name="button"
	type="submit" class="btn btnSpaceLeft" id="button" value="清 空" /> </div>
</form>
<table id="result" width="99%" cellpadding="0" cellspacing="0" class="table" >
 <tr>
    <th colspan="4">查询结果</th>
  </tr>
  <tr value="">
    <td width="63"  class="gridSubTitle">序号</td>
    <td width="1000"  class="gridSubTitle">用户名</td>
    <td width="140"  class="gridSubTitle">角色</td>
    <td width="96"  class="gridSubTitle">管理</td>
  </tr>
  <#list list as user>
  <tr class="row">
    <td align="center">
    ${user_index+1}<input type="checkbox"  name="names" value="${user.userName}" /></td>
    <td class="gridCenter">${user.userName}</td>
    <td class="gridCenter">${user.role!''}</td>
    <td class="gridCenter"><a class="view" href="edit.htm?userName=${user.userName}">编辑</a>
    <a class="del" href="delete.htm?userName=${user.userName}">删除</a>
    </td>
  </tr>
  </#list>
</table>
</body>
</html>
